﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SnakeGame_Roman
{
   public class Food
    {
        public int foodId;
        public int x { get; set; }
        public int y { get; set; }
        private static int numberOfFood;

        private Food()
        {
            numberOfFood = 0;
        }

        public Food(int left, int top)
            :this()
        {
            this.x = left;
            this.y = top;
            this.foodId = ++numberOfFood;
        }
    }
}
